#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
using namespace std;

int& func(int&& x)
{
	x++;
	return x;
}

int main()
{
	/*int x = func(5);
	cout << x << endl;*/
	int&& rey = 5;
	rey++;
	cout << rey << endl;
	cout << &rey << endl;

	int a = 10;
	int&& rra = move(a);
	rra++;
	cout << rra << endl;
	cout << a << endl;
	a++;
	cout << rra << endl;
	cout << a << endl;
	return 0;
}